diff --git a/components/script/dom/characterdata.rs b/components/script/dom/characterdata.rs index 65c84f1e2c0..1222084edd5 100644 --- a/components/script/dom/characterdata.rs +++ b/components/script/dom/characterdata.rs @@ -70,6 +70,16 @@ impl CharacterData { fn content_changed(&self) { let node = self.upcast::(); node.dirty(NodeDamage::OtherNodeDamage); + + // If this is a Text node, we might need to re-parse (say, if our parent + // is a +
Should be green
\ No newline at end of file diff --git a/tests/wpt/web-platform-tests/css/cssom/stylesheet-replacedata-dynamic.html b/tests/wpt/web-platform-tests/css/cssom/stylesheet-replacedata-dynamic.html new file mode 100644 index 00000000000..3ee5937c959 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/cssom/stylesheet-replacedata-dynamic.html @@ -0,0 +1,12 @@ + +(Test #1) CSS Test: Dynamic changes to the stylesheet contents using replaceData are reflected + + + + + +
Should be green
+ \ No newline at end of file