Menu

#1 html bareword attribute - keep

open
None
5
2012-10-16
2009-02-04
Anonymous
No

Hi
I have used this code for analyzing HTML document by first converting to XML and then parsing the XML. However there are HTML documents that use bareword attribute that are essencial to the parsing, for example:

<select>
<option>Volvo</option>
<option selected="">Saab</option>
<option>Mercedes</option>
<option>Audi</option>
</select>

Here selected meens selected="selected", which tells you which option is currentky viewed on screen.

Unfortunately the program ("WebCapt") drops this attribute. My suggestion is to keep this attribute by adding the value equal to the attribute-name.
I wuold highly appriciate you're help on this.
Regards

O. Blum

OdedBlum2@yahoo.com

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.