Hello,
I'm trying to parse an html document to extract the items inside the <head> section so that I can reconstitute them in a new document, but I haven't been able to figure out how to parse the conditional IE tags. Is there a recommended way to do that? Here's an excerpt of the html:
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>A Title</title>
...
<!--[if lt IE 9]>
<![endif]-->
...
</head>
I need to reproduce the conditional IE comments. I tried using QPXML's comment() method, but it doesn't seem to work. I've searched and wasn't able to find much info on parsing comments, and none specific to conditional comments like above. Any help would be appreciated.