Posted by Jim Higson on 12/19/05 14:02
hywel.jenkins@gmail.com wrote:
>
> Jim Higson wrote:
>> Debugging scrited sites would be easier if I could check my HTML stays
>> valid.
>>
>> I've used various HTML validators that grab the (X)HTML and run it
>> against a schema, but what about validating the 'live' HTML once the DOMs
>> been modified by a script?
>>
>> Is there any (reasonably easy) way to tell a browser to send the current
>> state of a page to a validator?
>
> Why not just ensure that your script outputs schema-valid HTML in the
> first place?
Sure, but how do I check?
I mean, it *looks* valid, but there are DOM elements being changed here and
there and there's no way to be certain other than schema validation.
--
Jim
[Back to original message]
|