diff options
author | Adam Sinnett <adam.sinnett@jivesoftware.com> | 2014-02-15 13:52:33 -0800 |
---|---|---|
committer | Adam Sinnett <adam.sinnett@jivesoftware.com> | 2014-02-15 13:52:33 -0800 |
commit | ffcd3833de3585f38a7b80c8b92bf7546803da8e (patch) | |
tree | 30ab014dfd6300b4e08bb2b34f5fe7d9211bfc6d /src/components/script/dom/htmlserializer.rs | |
parent | 425210b9b404ca769037879f9c2a01c63a0375c8 (diff) | |
download | servo-ffcd3833de3585f38a7b80c8b92bf7546803da8e.tar.gz servo-ffcd3833de3585f38a7b80c8b92bf7546803da8e.zip |
Change Text, Comment and ProcessingInstructions parent name from element to characterdata
All other node's parent type names reflect the actual type of the parent. This change extends that convention to the indicated nodes.
closes #1594
Diffstat (limited to 'src/components/script/dom/htmlserializer.rs')
-rw-r--r-- | src/components/script/dom/htmlserializer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/htmlserializer.rs b/src/components/script/dom/htmlserializer.rs index 260fa437154..97198b0ab79 100644 --- a/src/components/script/dom/htmlserializer.rs +++ b/src/components/script/dom/htmlserializer.rs @@ -77,7 +77,7 @@ fn serialize_text(node: AbstractNode) -> ~str { fn serialize_processing_instruction(node: AbstractNode) -> ~str { node.with_imm_processing_instruction(|processing_instruction| { - ~"<?" + processing_instruction.target + " " + processing_instruction.element.data + "?>" + ~"<?" + processing_instruction.target + " " + processing_instruction.characterdata.data + "?>" }) } |