unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#612: 23.0.60; nxml-mode bug when using XHTML 1. Transitional
@ 2008-07-26 13:27 Lennart Borgman (gmail)
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-07-26 13:27 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

The attached file is valid XHTML 1.0 Transitional (according to 
http://validator.w3.org/), but nxml-mode marks the label and input tags 
as invalid.


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
  of 2008-07-26

[-- Attachment #2: nxml-bug.html --]
[-- Type: text/html, Size: 389 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#612: 23.0.60; nxml-mode bug when using XHTML 1. Transitional
@ 2008-11-17  4:00 Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2008-11-17  4:00 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: 612

> The attached file is valid XHTML 1.0 Transitional (according to 
> http://validator.w3.org/), but nxml-mode marks the label and input tags 
> as invalid.

Looks like nXML mode is following the XHTML modularization standard
correctly.  According to 5.5.1 of that standard
(http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_forms),
the input and label tags are inside the Inline content set, and the body
of the form tag must be a Block object.  A Block object can be something
like a <p> tag enclosing an Inline object, but it can't be an Inline
object just by itself.

My suspicion is that the validator is more lax than the XHTML
modularization standard.  If you want nXML to allow this, make the
following edit to the schema file (I don't think we should actually make
this change in CVS, though):


*** trunk/etc/schema/xhtml-bform.rnc.~1.1.~   2007-12-15 06:01:36.000000000 -0500
--- trunk/etc/schema/xhtml-bform.rnc  2008-11-16 22:55:35.000000000 -0500
***************
*** 5,11 ****
      form.attlist,
      # Don't use Block.model, because this gets redefined by the
      # legacy module.
!     Block.class+
    }
  form.attlist =
    Common.attrib,
--- 5,11 ----
      form.attlist,
      # Don't use Block.model, because this gets redefined by the
      # legacy module.
!     (Block.class | Inline.class)+
    }
  form.attlist =
    Common.attrib,






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-17  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-26 13:27 bug#612: 23.0.60; nxml-mode bug when using XHTML 1. Transitional Lennart Borgman (gmail)
  -- strict thread matches above, loose matches on Subject: below --
2008-11-17  4:00 Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).