Disabling a message for an element within a flag

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Disabling a message for an element within a flag

Postby Daniel Lacroix » Thu Sep 20, 2007 8:35 am

Hi Albert,

I am getting this error message when validating ...

[83] The "iframe" element should not be used in a strict XHTML 1.0 document. Note that you may want to consider using a different DOCTYPE declaration that is more lenient and allows more element, such as an HTML 4.01 transitional DOCTYPE. For example, you may want to use the HTML 4.01 transitional DOCTYPE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">. If you are using HTML Validator's integrated editor, then you can add this from the Tags menu or from the Tag Inserter.

I would like to disable the message only for the iframe element.

Can it be done?

Thanks.
Daniel Lacroix
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 93
Joined: Sat Dec 11, 2004 3:38 pm

Postby Albert Wiersch » Thu Sep 20, 2007 11:04 am

Hi Daniel,

You can try editing the tag name program for iframe (107) using the Programs tab in the Configuration Editor.

Try changing this line:
runProgram(11,512,1024,65536,131072);

To this (remove 512):
runProgram(11,1024,65536,131072);

I would then save the new config file with a new name.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2649
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby Daniel Lacroix » Thu Sep 20, 2007 11:49 am

It's working.
Thanks Albert

How about this one

[82] The following attributes may not be used with the "form" element in a strict XHTML 1.0 document: "name" and "target".

For this one, I would like to disable the "name" attribute, since it's added automatically with .Net.

It tried to figure this one, but it's not obvious ... would you have any documentation, on how, one could do it?

Daniel.
Daniel Lacroix
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 93
Joined: Sat Dec 11, 2004 3:38 pm

Postby Albert Wiersch » Thu Sep 20, 2007 4:50 pm

Daniel Lacroix wrote:It's working.
Thanks Albert


You're welcome!

Daniel Lacroix wrote:How about this one

[82] The following attributes may not be used with the "form" element in a strict XHTML 1.0 document: "name" and "target".

For this one, I would like to disable the "name" attribute, since it's added automatically with .Net.

It tried to figure this one, but it's not obvious ... would you have any documentation, on how, one could do it?

Daniel.


You can do something similar, but for form (041). This will disable that check only for "form".

Change this line:
runProgram(1024,8192,65536);

to this (remove 1024):
runProgram(8192,65536);
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2649
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Postby Daniel Lacroix » Fri Sep 21, 2007 7:29 am

Thanks Albert.

Does this last modification to the form tag, just disable the name attribute check within the form, or is it disabling more checks?

Thanks again.

Daniel.
Daniel Lacroix
Rank III - Intermediate
Rank III - Intermediate
 
Posts: 93
Joined: Sat Dec 11, 2004 3:38 pm

Postby Albert Wiersch » Fri Sep 21, 2007 12:07 pm

Daniel Lacroix wrote:Thanks Albert.

Does this last modification to the form tag, just disable the name attribute check within the form, or is it disabling more checks?

Thanks again.

Daniel.


Hi Daniel,

It will not do the check "for XHTML 1.0 strict, XHTML 1.1 and HTML 4.0x strict tags that may contain non-XHTML 1.0 strict, non-XHTML 1.1 or non-HTML 4.0x strict attributes". So it won't check to see if you used an attribute with "form" that is not allowed for XHTML 1.0 strict, XHTML 1.1 and HTML 4.0x strict documents. That includes the "name" and "target" attributes for "form". Elements other than "form" should not be affected.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2649
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest