Attribute Value quotation correction

Topics: Developer Forum
Jun 4, 2012 at 8:17 PM

I notice with the HAP, that it doesn't seem to correct quotations if you do something like say...

 

<table id="Table" align="center" cellpadding="0" cellspacing="0" width="630px"
                            class="default" style="background: white>

You'll notice that the last quote is missing.

Is there a setting to have it correct things like this? 

I myself think that it SHOULDN'T fix this stuff.  It's the HTML writer's job to do make sure they give valid information.

However, I'd like to fix the worst case scenarios if possible...

 

 

I thought "maybe I can just have it check for >, and close things out", but that would only work if its the last attribute.

 

and, this also means you can't set text values to something with > in it... which also seems incorrect.

 

 

Any ideas?

 

I am OK with an answer such as "no, you can't correct quotes, tell people to lrn2html".

 

Jun 13, 2012 at 12:05 AM

Actually, I agree it should handle/fix things like this. I'll add it to the list of parsing engine things to look into.