outright error in error message?

View: New views
4 Messages — Rating Filter:   Alert me  

outright error in error message?

by Magda Wojtyra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Attribute "BORDER" is not a valid attribute. Did you mean "border"?

…go" width="980" height="133" border="0" usemap="#logo_mouse" class=logo_heade

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

--------

 

As you can see in the code snippet, I AM using lower case for “border”. So why does it think it’s in capitals? Very frustrating to get many repeated non-error errors like this!!

 

I am using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> and the element in question is an image, so a border is perfectly fine.

 

Thanks for reading,

Magda :)


Re: outright error in error message?

by Dag-Erling Smørgrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Magda Wojtyra" <magda@...> writes:
> I am using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> and the
> element in question is an image, so a border is perfectly fine.

Nope:

<!ATTLIST IMG
  %attrs;                              -- %coreattrs, %i18n, %events --
  src         %URI;          #REQUIRED -- URI of image to embed --
  alt         %Text;         #REQUIRED -- short description --
  longdesc    %URI;          #IMPLIED  -- link to long description
                                          (complements alt) --
  name        CDATA          #IMPLIED  -- name of image for scripting --
  height      %Length;       #IMPLIED  -- override height --
  width       %Length;       #IMPLIED  -- override width --
  usemap      %URI;          #IMPLIED  -- use client-side image map --
  ismap       (ismap)        #IMPLIED  -- use server-side image map --
  >

DES
--
Dag-Erling Smørgrav - des@...


Re: outright error in error message?

by David Dorward-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 29 Oct 2009, at 19:13, Magda Wojtyra wrote:
As you can see in the code snippet, I AM using lower case for “border”. So why does it think it’s in capitals?

It is a generic attempt at a suggested recovery. The feature works poorly and I believe it has been removed from the development version.

 I am using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> and the element in question is an image, so a border is perfectly fine. 

http://www.w3.org/TR/html4/index/attributes.html shows that the border attribute for img elements requires the loose (transitional) DTD. This sort of presentational detail is handled using stylesheets on modern webpages.


-- 
David Dorward


Parent Message unknown Re: outright error in error message?

by Andreas Prilop-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 29 Oct 2009, Magda Wojtyra wrote:

> I am using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> and
> the element in question is an image, so a border is perfectly fine.

 http://www.htmlhelp.com/reference/html40/special/img.html
shows you which attributes exist in HTML 4 Strict and which attributes
exist in HTML 4 Transitional.
 http://www.htmlhelp.com/reference/html40/html/doctype.html