#1247: Text.XHtml version is out of date?
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |          Owner:             
     Type:  bug                   |         Status:  new        
 Priority:  normal                |      Milestone:             
Component:  libraries/base        |        Version:  6.6        
 Severity:  normal                |     Resolution:             
 Keywords:  Text.XHtml            |     Difficulty:  Easy (1 hr)
 Testcase:                        |   Architecture:  powerpc64  
       Os:  MacOS X               |  
----------------------------------+-----------------------------------------
Comment (by [EMAIL PROTECTED]):

 OK - this is definitely a bug.

 From  [http://darcs.haskell.org/packages/xhtml/_darcs/inventory darcs]:

   The InternalRender module was added to avoid circular dependencies
 between the Internals module and the Strict.Elements module. I moved the
 functions back
 into Internals by using the tag and strAttr primitives instead of the
 Strict.Elements function thehtml.

   Users normally won't use thehtml, instead it will be added by using one
 of the rendering functions.  Thus it seems likely that any user who
 actually uses thehtml wants to do something special, and we shouldn't
 force the xmlns attribute on them.

   It seems quite unlikely that most users would use the xmlns attribute,
 so I removed it to avoid changing the public API.

 Without the xmlns attribute, the library isn't much good, as it won't
 produce valid output as per the [http://www.w3.org/TR/xhtml1/#docconf
 spec]:

   The root element of the document must contain an xmlns declaration for
 the XHTML namespace [XMLNS]. The namespace for XHTML is defined to be
 http://www.w3.org/1999/xhtml.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1247>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to