Re: transitional --> strict

I guess you are using XHTML 1.0 strict.
Here is the DTD fragment that defines element a and its attributes
in XHTML 1.0 strict:

<!ELEMENT a %a.content;>
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #IMPLIED
  name        NMTOKEN        #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  accesskey   %Character;    #IMPLIED
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED


As you can see, target is not a valid attribute for element a in
this DTD.
By the way, src is also an invalid attribute for element a in all DTDs.


John Russell wrote:
> i am trying to upgrade pages from transitional to strict....
> keep getting errors for <a src="foo" target="bar">foo de bar</a>
> saying target isn't acceptable... it passed in transitional version.
> how do i do the equivalent operation  mostly when bar = _page!
> cant see where target is not allowed in the TR!
> John Russell, VE3LL@RAC.CA
> Be sure to check your HTML markup code
> tags by using or

Received on Wednesday, 25 July 2001 05:25:40 UTC