W3C home > Mailing lists > Public > www-amaya-dev@w3.org > February 2000

IsTextLeaf()?

From: Ly, An <An.Ly@ca.com>
Date: Thu, 10 Feb 2000 12:15:42 -0500
Message-ID: <59E5CA0D73C5D311AD45009027AA4DE7C0DB2D@usilms03.cai.com>
To: www-amaya-dev@w3.org
Hi,

Is it correct to check using:

(!pave->AbPresentationBox) && pave->AbCanBeModified && pave->AbLeafType ==
LtText

instead of:

(!pave->AbPresentationBox || pave->AbCanBeModified) && pave->AbLeafType ==
LtText

?

In the current code, some cases such as the dummy element at the end of HR
or IMG is considered a text leaf using the 2nd line of code. Is that OK or
not?

The first line of code will stop that, I think, but it also require
non-presentation boxes to be modifiable to be considered a text leaf. Is
this OK?

Thanks,
An
Received on Thursday, 10 February 2000 12:15:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:48:58 GMT