WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
12583
reconsider giving HTML elements in non-XML HTML documents an XHTML namespaceURI
https://bugs.webkit.org/show_bug.cgi?id=12583
Summary
reconsider giving HTML elements in non-XML HTML documents an XHTML namespaceURI
Alexey Proskuryakov
Reported
2007-02-04 07:51:25 PST
Calling namespaceURI() on an element in an HTML document now gives "
http://www.w3.org/1999/xhtml
" namespace.
Attachments
test case
(210 bytes, text/html)
2007-02-04 07:52 PST
,
Alexey Proskuryakov
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-02-04 07:52:38 PST
Created
attachment 12917
[details]
test case
Maciej Stachowiak
Comment 2
2007-02-04 11:51:30 PST
<
rdar://problem/4975136
>
Dave Hyatt
Comment 3
2007-02-05 04:25:59 PST
Is that wrong? I actually did that on purpose I think.
Alexey Proskuryakov
Comment 4
2007-02-05 06:53:07 PST
Hmm, now I checked HTML5, and it indeed says that HTML elements must be in XHTML namespace. Yet, this is not what I get from Firefox 2. Also, this appears to clash with XPath spec (which is very explicit about null namespaces, see <
http://www.w3.org/TR/xpath#node-tests
>), as queries like "//div" would no longer work in HTML. I guess our XPath implementation could be tweaked to account for this issue instead, but this would mean a rather unpleasant mismatch in behavior of different parts of DOM.
Maciej Stachowiak
Comment 5
2007-02-07 00:33:00 PST
Classically, HTML has had a null namespace. We moved it to the XHTML namespace because HTML5 suggests this, and it gives a better match between HTML and XHTML behavior. We could reconsider this change, but since it is an intentional behavior change, I don't think we should track it as a regression or a P1 until we decide what to do.
Alexey Proskuryakov
Comment 6
2007-08-10 11:39:08 PDT
> Also, this appears to clash with XPath spec
FWIW, our XPath implementation now has a special case to hide this issue.
Alexey Proskuryakov
Comment 7
2010-03-22 17:36:31 PDT
No longer willing to reconsider.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug