homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Custom DTD: document type does not allow element "s" here
Trying to add the s element to XHTML 1.1 element, how to allow s element?
JAB Creations

WebmasterWorld Senior Member jab_creations us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4353110 posted 2:53 pm on Aug 18, 2011 (gmt 0)

I'm trying to add strike support to an editor I'm working on though HTML5 has too many issues and XHTML 1.1 works beautifully for the most part. The s element is a valid part of HTML5 and seems at least decently supported so I'm trying to add it to my XHTML 1.1 doctype as so...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [<!ELEMENT s (PCDATA | Inline*)>]>


Unfortunately I get the following error with the W3C validator...

document type does not allow element "s" here


I'm not sure how to allow the element though?

- John

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4353110 posted 1:00 am on Aug 19, 2011 (gmt 0)

Where is "here"? Are you sure there isn't an earlier issue that is cascading to the s element's position?

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4353110 posted 2:19 am on Aug 19, 2011 (gmt 0)

I was going to say "later issue". You can't get much earlier than the DTD :) I've seen the "element such-and-such isn't allowed here" line more often than I care to say, but never in response to something occurring after the actual word "ELEMENT". Usually it's a complaint involving &. Conversely, if there's a problem with the DTD itself, usually the validator digs in its heels and refuses to proceed.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4353110 posted 3:04 am on Aug 19, 2011 (gmt 0)

Ah, now I think I get it. Are you sure the W3C validator supports a customized DTD?

JAB Creations

WebmasterWorld Senior Member jab_creations us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4353110 posted 1:57 pm on Aug 19, 2011 (gmt 0)

A paragraph or span element, preferably both just so I can see how to add support for multiple elements (the separator) as this seems to be poorly documented (or to somehow select a "class" of text-module related elements if such classes exist).

Yes, it does Ted. My site's frameset adds a rule for the border attribute which is necessary to remove the border (you can't with CSS in any way).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" [<!ATTLIST frameset border CDATA #IMPLIED>]>


- John

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved