[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`html-parse-string' ignores script tag and comment.
From: |
HAMANO Kiyoto |
Subject: |
`html-parse-string' ignores script tag and comment. |
Date: |
Mon, 13 Sep 2010 01:13:39 +0900 |
I tried `html-parse-string' function.
Its feature is very interesting and very nice.
Thanks for implementing!
But, `html-parse-string' ignores script tags and comments.
(html-parse-string "<script>foo</script>") ; => (html (head (script nil)))
(html-parse-string "<p>foo</p><!-- bar -->") ; => (html (body (p (text
. "foo")) nil))
The cause is like the make_dom function (src/xml.c).
The `make_dom' function see a XML_TEXT_NODE and XML_ELEMENT_NODE.
But, The function don't see a XML_CDATA_SECTION_NODE and XML_COMMENT_NODE.
Therefor, It seems that the script tag and comments are not displayed.
;; My environment: Emacs 24 (9/11 build), Debian GNU/Linux sid (i386)
--
HAMANO Kiyoto
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- `html-parse-string' ignores script tag and comment.,
HAMANO Kiyoto <=