Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > make WebKit save good html?

make WebKit save good html?
Thread Tools
Dedicated MacNNer
Join Date: Apr 2004
Status: Offline
Reply With Quote
Jul 25, 2006, 07:00 PM
so, I've got a project for which I was hoping to use HTML for display, and I wanted to use webkit for editing HTML as it was displayed (I could, of course, write a bunch of code to do the editing with my own custom view and output the html manually, but I thought that having WebKit do it would be so much easier. It saves me parsing the HTML and all that.

BUT... when I get the HTML...
[(DOMHTMLElement *)[[[mainPane mainFrame] DOMDocument] documentElement] outerHTML];
it comes out with the tags in all caps, and it clobbers my doctype that I feed it.

Is there some way to get WebKit to play nice and output markup that would conform as XHTML?
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 06:26 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,