DescriptionThis fixes the remainder of issue 1103:
Felix said:
the part that isn't fixed is that when a gadget has
<body class="foo">...</body>
the class attribute is removed, rather than reparented.
the workaround in many cases is pretty simple:
instead of putting a class on body, put the class on
a div within the body.
that doesn't work for yui because some widgets will
insert nodes in body, which in caja will be a fake
body that won't have the right classes, so the
inserted nodes will not have the right style rules
applied.
This addresses that.
(1) add to html-emitter.js a method that adds classes
to the body.
(2) changes RewriteHtmlStage to find call the new
HtmlEmitter method.
(3) changes CssRuleRewriter so that all CSS rules that
involve body classes refer to the virtual body
(4) adds tests to domita_test.html to test body classes.
Submitted @4132
Patch Set 1 #
Total comments: 4
MessagesTotal messages: 5
|