W3C home > Mailing lists > Public > public-tt@w3.org > December 2008

spec typo Content Hierarchy Region Mapping example code

From: Sean Hayes <Sean.Hayes@microsoft.com>
Date: Wed, 10 Dec 2008 18:51:09 +0000
To: "public-tt@w3.org" <public-tt@w3.org>
Message-ID: <90EEC9D914694641A8358AA190DACB3D2FCEA62563@EA-EXMSG-C334.europe.corp.microsoft.com>
foreach E in POSTORDER-TRAVERSE ( R )
        if CONTENT-ELEMENT? ( E ) and TEMPORALLY-ACTIVE? ( E )
          if EMPTY? ( E ) or REGION-OF ( E ) != R and
            then PRUNE ( E )

Doesn't seem right. It doesn't prune elements which are not temporally active.

Perhaps:

foreach E in POSTORDER-TRAVERSE ( R )
        if not CONTENT-ELEMENT? ( E ) or not TEMPORALLY-ACTIVE? ( E )
            then PRUNE ( E )
        if EMPTY? ( E ) or REGION-OF ( E ) != R and
            then PRUNE ( E )

Sean Hayes
Media Accessibility Strategist
Accessibility Business Unit
Microsoft

Office:  +44 118 909 5867,
Mobile: +44 7875 091385
Received on Wednesday, 10 December 2008 18:53:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 November 2009 22:41:39 GMT