Closed Bug 779058 Opened 13 years ago Closed 8 years ago

nsTreeSanitizer doesn't reconstruct the content of the <style> element correctly when removing -moz-binding

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hsivonen, Assigned: heycam)

References

Details

Steps to reproduce: 1) Run the chrome mochitest test_bug650776.html Expected results: Expected the todo_is() at http://mxr.mozilla.org/mozilla-central/source/content/base/test/chrome/test_bug650776.html?force=1#38 to have to be changed to is() in order to make the test to pass. Actual results: The test passes as is.
Hmm, did this bug exist in mozSanitizingSerializer as well? What is the thing that is failing there? Are we dealing with things like extra white-spaces, or is the generated CSS text actually invalid?
(In reply to Ehsan Akhgari [:ehsan] from comment #1) > Hmm, did this bug exist in mozSanitizingSerializer as well? I haven't tested, but by code inspection, I expect that the old code was broken in the same way. > What is the > thing that is failing there? Are we dealing with things like extra > white-spaces, or is the generated CSS text actually invalid? The generated CSS is invalid. If I recall correctly, properties and values are regenerated correctly, but selectors and declaration blocks are not.
I'm fixing this in bug 1408311.
Depends on: 1408311
Assignee: nobody → cam
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.