Override docType in WAHtmlRoot object?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Override docType in WAHtmlRoot object?

Rick Flower
I see in WAHtmlRoot the docType instance variable (and it's accessors as
well), but am not sure how I can get to that object to change the
default setting from Transitional to strict.. Is there some method off
of WAComponent I can use to get to the WAHtmlRoot or some other way?

If it matters, I'm using the Canvas API..

Boris -- I think you've gone down this path already -- are there any
gotcha's I should look out for?

TIA!
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Override docType in WAHtmlRoot object?

Boris Popov, DeepCove Labs (SNN)
In your top component implement the following,

MyComponent>>updateRoot: aHtmlRoot
 super updateRoot: aHtmlRoot.
 aHtmlRoot docType: self xhtml10strict.

and,

xhtml10strict
        ^'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'

Hope this helps,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Rick Flower
> Sent: Tuesday, February 20, 2007 1:27 PM
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: [Seaside] Override docType in WAHtmlRoot object?
>
> I see in WAHtmlRoot the docType instance variable (and it's accessors
as

> well), but am not sure how I can get to that object to change the
> default setting from Transitional to strict.. Is there some method off
> of WAComponent I can use to get to the WAHtmlRoot or some other way?
>
> If it matters, I'm using the Canvas API..
>
> Boris -- I think you've gone down this path already -- are there any
> gotcha's I should look out for?
>
> TIA!
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Override docType in WAHtmlRoot object?

Rick Flower
Boris Popov wrote:

> In your top component implement the following,
>
> MyComponent>>updateRoot: aHtmlRoot
>  super updateRoot: aHtmlRoot.
>  aHtmlRoot docType: self xhtml10strict.
>
> and,
>
> xhtml10strict
> ^'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'

Thanks Boris -- I guess I forgot that I had that updateRoot: method.. I
almost never look at it.. It's apparently working now.. Thanks!

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside