Closed
Bug 573969
Opened 14 years ago
Closed 14 years ago
innerHTML getter on <xmp> is no longer special-cased, causing tuenti.com to display unparsed markup
Categories
(Core :: General, defect)
Core
General
Tracking
()
VERIFIED
FIXED
mozilla2.0b2
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta2+ |
People
(Reporter: willyaranda, Assigned: mounir)
References
()
Details
(Keywords: regression, relnote)
Attachments
(3 files, 1 obsolete file)
65.72 KB,
image/png
|
Details | |
86.08 KB,
image/png
|
Details | |
3.38 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
It's a regression between 21st of June 2010 and 22nd, range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c7eaf9387b1f&tochange=ce18b4287791
Reproducible: Always
Steps to Reproduce:
1. Log in
2. You'll see HTML code instead of the parsed one.
3.
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
Reporter | ||
Comment 3•14 years ago
|
||
Juan, could you investigate this problem? We have a user/pass to test
Comment 5•14 years ago
|
||
(In reply to comment #3)
> Juan, could you investigate this problem? We have a user/pass to test
Guillermo, can you please send me those data in a private message? Thanks.
Updated•14 years ago
|
Keywords: regression,
regressionwindow-wanted
Version: unspecified → Trunk
Comment 6•14 years ago
|
||
I, too, would appreciate the login/pass; I should be able to bisect with that.
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → general
Reporter | ||
Comment 7•14 years ago
|
||
I've sent you an email to your bugzilla emails, if you want it on other mail, please, tell me.
Thanks
Comment 8•14 years ago
|
||
The first bad revision is:
changeset: 43929:11aa64d1d612
user: Mounir Lamouri <mounir.lamouri@gmail.com>
date: Tue Jun 22 02:02:07 2010 +0200
summary: Bug 568515 - xmp and plaintext element should be considered as HTMLElement, not HTMLSpanElement, r=sicking
I verified via local backout that it's the innerHTML changes that are responsible.
Assignee: nobody → mounir.lamouri
Updated•14 years ago
|
Keywords: regressionwindow-wanted
Comment 9•14 years ago
|
||
Looks like the page uses <xmp> with display:none or something as template containers, and uses .innerHTML to get the template text. Since we stopped special-casing the innerHTML getter on <xmp> but still special-case parsing, if you have:
<xmp><div></div></xmp>
and get the innerHTML of the <xmp>, you get "<div></div>" instead of "<div></div>".
I just tried Chrome, Safari, Opera, and IE8 on that testcase, all in standards mode. All of those hand back "<div></div>". Sounds to me like we need to undo at least the change to our innerHTML getter, and get the spec changed to match reality.
Comment 10•14 years ago
|
||
http://www.whatwg.org/html#html-fragment-serialization-algorithm has special cases for style, script, xml, etc. This is not something that changed recently. Someone must have misunderstood the specification. Might be good to get a clarification where it went wrong so the specification can be improved.
Comment 11•14 years ago
|
||
Indeed. It looks like no one in bug 568515 bothered to worry about the getter, just the setter.
Comment 12•14 years ago
|
||
Tuenti.com is the most important social network in Spain (8+ million users), it would be great to have this regression fixed for Firefox 4 betas ;)
Comment 13•14 years ago
|
||
Is this serious enough that it needs to block beta1? Because if so, it needs a different owner...
Comment 14•14 years ago
|
||
At least in Spain, it would be a big marketing issue to test Firefox 4 beta and see that one of the most popular sites does not work.
Comment 15•14 years ago
|
||
(In reply to comment #13)
> Is this serious enough that it needs to block beta1? Because if so, it needs a
> different owner...
Judge for yourself: http://www.alexa.com/siteinfo/tuenti.com
Tuenti is the 10th (410 worldwide) in the Alexa rank, so I think yes, it should block beta1.
Comment 16•14 years ago
|
||
Is anyone working on a patch for this?
Comment 17•14 years ago
|
||
Not yet, but I can write one up if we want this for b1...
Reporter | ||
Comment 18•14 years ago
|
||
Well, I think the patch should be on beta 1, per comment 14 and comment 15 (and because Mozilla want a lot of feedback on the betas of Firefox 4 and we have planned some things to encourage users to test the new version).
Just my 0,02€, but I'm not the developer...
Comment 19•14 years ago
|
||
The commenters in comment 14 and 15 don't get to set my priorities (in the "drop everything else, no matter how important, and work on this right now" sense).... If drivers decide we want this, thought, that's a different story.
Comment 20•14 years ago
|
||
For b1 couldn't we just backout Bug 568515?
Comment 21•14 years ago
|
||
If we're ok with that, then that would be the easy way, yes.
Reporter | ||
Comment 22•14 years ago
|
||
FYI, we have at least one report in our community forum:
http://www.mozilla-hispano.org/foro/viewtopic.php?f=37&t=8496 (in spanish, but believe me, it's about this bug ;) )
Arg, I thought I had posted this already but apparently I forgot to push 'commit'.
I talked with drivers about this on the 30th and the 1st, and consensus was that it was too late to sneak this one in.
However hopefully we can relnote this bug though, as to assure people that this is a known problem that will be fixed.
Keywords: relnote
Comment 24•14 years ago
|
||
Ok, then let's make sure we fix this for next beta.
blocking2.0: ? → beta2+
Updated•14 years ago
|
Summary: HTML code is displayed instead of being parsed → innerHTML getter on <xmp> is no longer special-cased, causing tuenti.com to display unparsed markup
Comment 25•14 years ago
|
||
Please, be sure this is included in next beta. Tuenti is easily #1 in Spain despite Alexa (that doesn't track well ajax and invitation only website), with ~25 billion page views per month, and a lot of our users use Firefox.
If you need any help or know possible workarounds for <xmp> as template container, please just tell us.
Comment 26•14 years ago
|
||
One workaround is to use .textContent instead of .innerHTML (which should be the same thing for <xmp>)... The main issue with that is that IE doesn't support .textContent, at least in old enough versions.
Assignee | ||
Comment 27•14 years ago
|
||
I'm back from vacation. I'm going to write a patch for that ASAP.
Sorry for the delay.
Status: NEW → ASSIGNED
Assignee | ||
Comment 28•14 years ago
|
||
I've restored GetInnerHTMTL only.
Attachment #456891 -
Flags: review?(jonas)
Comment 29•14 years ago
|
||
We should file a followup bug on doing this the way the spec calls for (i.e. in the serializer).
Comment on attachment 456891 [details] [diff] [review]
Patch v1
>+nsHTMLElement::GetInnerHTML(nsAString& aInnerHTML)
>+{
>+ /**
>+ * nsGenericHTMLElement::GetInnerHTML escapes < and > characters (at least).
>+ * .innerHTML should return the HTML code for xmp and plaintext element.
>+ * See bug 573969.
>+ */
Remove the reference to the bug#. We generally don't put those in as it would result in way too many bug references. You can always find the bug# through hg-log. You might instead want to say that this behavior is what the HTML5 spec calls for, given that it's somewhat unexpected.
r=me with that and assuming that you've checked that this is the behavior the HTML5 spec calls for.
Attachment #456891 -
Flags: review?(jonas) → review+
Oh, didn't see comment 29. Hmm.. I guess it's ok that we fix this in a non-specified way until we actually implement a HTML5 serializer.
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 33•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Flags: in-testsuite+
Comment 34•14 years ago
|
||
Confirmed, tuenti.com loads correctly using
Mozilla/5.0 (X11; Linux i686; es-ES; rv:2.0b2pre) Gecko/20100718 Minefield/4.0b2pre
Comment 35•14 years ago
|
||
Tuenti works fine for me too.
Mozilla/5.0 (X11; Linux x86_64; en-US; rv:2.0b2pre) Gecko/20100718 Minefield/4.0b2pre
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
Flags: in-litmus-
Target Milestone: --- → mozilla2.0b2
Comment 36•14 years ago
|
||
Using
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Tuenti keeps freezing at 90% - 91% when loading, this issue didn´t occur with the 6th beta, I´m guessing something broke again.
Reporter | ||
Comment 37•14 years ago
|
||
comment 36: that was bug 604612 which is fixed now and will be shipped in a near beta!! (a few days, I hope).
You need to log in
before you can comment on or make changes to this bug.
Description
•