WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
47046
REGRESSION (
r63517
): Apple concierge website broken because of text node between HEAD and BODY
https://bugs.webkit.org/show_bug.cgi?id=47046
Summary
REGRESSION (r63517): Apple concierge website broken because of text node betw...
mitz
Reported
2010-10-02 02:26:26 PDT
In TOT, the product tiles at
http://concierge.apple.com/store/R075
do not respond to hovering over them or clicking them. The Inspector console reports HIERARCHY_REQUEST_ERR: DOM Exception 3: A Node was inserted somewhere it doesn't belong. An inspection of the DOM reveals that the BODY element’s previous sibling is a text node. In Safari 5.0.2, the BODY element’s previous sibling is the HEAD element. This is a reduction: <head></head> <body><script>alert(document.body.previousSibling)</script></body>
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2010-10-02 02:27:36 PDT
<
rdar://problem/8505994
>
mitz
Comment 2
2010-10-02 02:37:38 PDT
Caused by <
http://trac.webkit.org/changeset/63517
>.
Adam Barth
Comment 3
2010-10-02 15:26:35 PDT
The site is also broken in Firefox 4. Perhaps we can evangalize the site to use document.head or document.getElementsByTagName('head')[0] to local the head element?
Alexey Proskuryakov
Comment 4
2010-10-02 20:24:53 PDT
Does this HTML5 behavior match any shipping browser?
Adam Barth
Comment 5
2010-10-02 22:17:15 PDT
I complained about this change when we first implemented it. I can dig up the W3C bug if you like. The spec skips some whitespace nodes early in the document for compatibility. At the time Ian's position was that skipping these nodes is aesthetically ugly because you lose information about the original document. You can see this effect, for example, when you serialize the DOM back to a string. My guess is this issue will come down to an estimate of how many cites are affected. If this is the first one that we and Henri have seen, we might try to evangelize it (especially since it's from a company that, you know, makes a web browser). If we see more examples, we might want to change the spec.
Henri Sivonen
Comment 6
2010-10-04 00:39:11 PDT
(In reply to
comment #5
)
> If this is the first one that we and Henri have seen
I don't recall seeing this before.
Andy Estes
Comment 7
2011-01-13 15:33:25 PST
I don't see this bug on the live site anymore. I can hover over the product categories and they gain border highlighting; I can also click them. Mitz, can you confirm this?
mitz
Comment 8
2011-01-13 16:00:03 PST
I cannot reproduce the symptom with a build of TOT.
Adam Barth
Comment 9
2011-01-13 16:01:04 PST
Please feel free to re-open this bug if we find more examples.
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