mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
innerText: ignore CDATA section
This commit is contained in:
@@ -265,6 +265,9 @@ fn _getInnerText(self: *Element, writer: *std.Io.Writer, state: *innerTextState)
|
|||||||
// if we had a pre space, trim left next one.
|
// if we had a pre space, trim left next one.
|
||||||
state.trim_left = state.pre_w;
|
state.trim_left = state.pre_w;
|
||||||
},
|
},
|
||||||
|
// CDATA sections should not be used within HTML. They are
|
||||||
|
// considered comments and are not displayed.
|
||||||
|
.cdata_section => {},
|
||||||
},
|
},
|
||||||
.document => {},
|
.document => {},
|
||||||
.document_type => {},
|
.document_type => {},
|
||||||
|
|||||||
Reference in New Issue
Block a user