Skip to main content

Bug Tracker

Side navigation

#14583 closed bug (notabug)

Opened November 28, 2013 01:46PM UTC

Closed November 29, 2013 11:59PM UTC

Last modified December 02, 2013 03:03PM UTC

Jqeury .html(data) doesn't recognize chars "-" and '.'

Reported by: mad.jaro@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.0-beta2
Keywords: Cc:
Blocked by: Blocking:
Description

Execute:

$('BODY').html('<live-messenger />');

It will be replaced by '<live-messenger></live>' string. The problem is related to rxhtmlTag regex.

Attachments (0)
Change History (4)

Changed November 28, 2013 07:29PM UTC by anonymous comment:1

.html() is for HTML. '<live-messenger />' is not HTML.

Changed November 29, 2013 11:59PM UTC by gibson042 comment:2

resolution: → notabug
status: newclosed

Spec reference: http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#syntax-tag-name

HTML elements all have names that only use alphanumeric ASCII characters.

...but possibly another case for exposing rxhtmlTag and the replacement value as suggested at http://bugs.jquery.com/ticket/14464#comment:2.

Changed December 02, 2013 09:34AM UTC by mad.jaro@gmail.com comment:3

Here is an example that uses syntax compatible with html spec:

$('BODY').html('<textarea><live-messenger /></textarea>');

Changed December 02, 2013 03:03PM UTC by gibson042 comment:4

Replying to [comment:3 mad.jaro@…]:

Here is an example that uses syntax compatible with html spec: $('BODY').html('<textarea><live-messenger /></textarea>');

That has nothing to do with recognition of "-" or "." (e.g., <textarea><contents /></textarea> is affected in the same way), and is in fact an entirely separate issue: #14370