• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
flavour outerHTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

flavour outerHTML


  • Subject: flavour outerHTML
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 21 Aug 2007 12:40:01 +0200

A DOMHTMLElement has a method outerHTML which returns Html text as NSString.

This is even somewhat documented in the chapter "Using the Document Object Model Extensions" of the "Web Kit Objective-C Programming Guide".

Is it possible to control the flavour of Html created? I would like to get Xhtml-1.

The DOMDocument whose documentElement gets the outerHTML message has a doctype with publicId: "-//W3C//DTD XHTML 1.0 Strict//EN" and systemId: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; but the resulting NSString does not contain any DOCTYPE, nor is it valid Xhtml.

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: How to get a DOMRange
  • Next by Date: Re: Notifying when a key is pressed and perform default tasks.‎‎
  • Previous by thread: DashBoard Help
  • Next by thread: Strange message?
  • Index(es):
    • Date
    • Thread