I recently got a new WAP-capable phone, and since you can do a lot of interesting things by pointing it at various URLs, I thought I'd try making a cute little website in Woven for my phone to browse. Unfortunately, it seems that this is impossible. The resulting markup from my simple Woven test page had all sorts of woven-stuff all through it - such as pattern attributes that hadn't been removed, and id attributes that were woven's internal IDs, rather than the IDs I tried to set. Modern, capacious HTML browsers wouldn't care, I guess, but my phone's little brain overloaded and gave up. Is this just the way Woven works, or am I likely doing something wrong? For the record, twisted.web can serve up static WML just fine, provided the following patch is applied: Index: twisted/web/static.py =================================================================== RCS file: /cvs/Twisted/twisted/web/static.py,v retrieving revision 1.91 diff -u -r1.91 static.py --- twisted/web/static.py 13 May 2003 04:36:21 -0000 1.91 +++ twisted/web/static.py 31 May 2003 05:25:41 -0000 @@ -175,6 +175,7 @@ ".tif": "image/tiff", ".tiff": "image/tiff", ".txt": "text/plain", + ".wml": "text/vnd.wap.wml", ".xul": "application/vnd.mozilla.xul+xml", ".zip": "application/x-zip", ".patch": "text/plain",
On Friday, May 30, 2003, at 10:29 PM, Tim Allen wrote:
I recently got a new WAP-capable phone, and since you can do a lot of interesting things by pointing it at various URLs, I thought I'd try making a cute little website in Woven for my phone to browse.
Cool :-)
Unfortunately, it seems that this is impossible. The resulting markup from my simple Woven test page had all sorts of woven-stuff all through it - such as pattern attributes that hadn't been removed, and id attributes that were woven's internal IDs, rather than the IDs I tried to set. Modern, capacious HTML browsers wouldn't care, I guess, but my phone's little brain overloaded and gave up.
The woven-specific attributes should really all be removed -- any that are left in are just there because I have been lazy about it, since as you observe modern browsers don't care. I'll try to go through and make sure woven outputs clean XHTML by the next release... I have been meaning to do it for a while anyway. The tendency for woven to overwrite ids you try to set has been fixed in CVS. Also, since several people have requested it, I will remove the auto-id setting unless you are using LivePage, which is the only thing that uses it.
Is this just the way Woven works, or am I likely doing something wrong?
I would consider these bugs, and thanks for the report! Donovan
The woven-specific attributes should really all be removed -- any that are left in are just there because I have been lazy about it, since as you observe modern browsers don't care. I'll try to go through and make sure woven outputs clean XHTML by the next release... I have been meaning to do it for a while anyway.
Could we set this removal of woven 'html' attributes (on final output html) on a flag or option? I have found that the attributes can be helpful in tracking down some silly bugs in my code (like not setting controller to the right object and so on).
participants (3)
-
Donovan Preston
-
Mukhsein Johari
-
Tim Allen