[bug] Amaya does not catch invalid label

Label nesting in html is opposite to that of XForms
but Amaya doesn't trap the error when label is
nested INSIDE a control which it should....

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head><title>Label Nesting:VE3LL2COGECO.CA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head><body><h1>Label Nesting:VE3LL2COGECO.CA</h1>
<p>HTML4 states that for nesting, the control must be inside the label.
This is backwards to XForms of course. Amaya allows nesting either
way although it should trap the XForms way</p>
<label>HTML way:<input name="xx" type="text"/></label>
<input name="yy" type="text"><label>XForms way:</label></input>
John Russell, VE3LL@COGECO.CA

Received on Monday, 18 December 2006 10:22:55 UTC