emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html-parse-string: Ignores the content of SCRIPT tag and the COMMENT


From: Lars Magne Ingebrigtsen
Subject: Re: html-parse-string: Ignores the content of SCRIPT tag and the COMMENT tag
Date: Wed, 20 Jul 2011 22:54:24 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Hamano Kiyoto's copyright assignment is now complete; if the patch is
> good, could you apply it?  Thanks.

If presented with

<!-- comment -->
<p>Text</p>

the patch would return a non-tree structure.  I've now fixed that, but
it's not a good fix.

A normal HTML text returns this:

<p>Text</p>

(html nil (body nil (p nil "Text")))

However, this:

<!-- comment --><p>Text</p>

now returns this:

(top nil (comment nil " comment ") (html nil (body nil (p nil "Text"))))

That's obviously not particularly pleasant.  Anybody have a better idea?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]