note 76254 added to function.dom-domtext-iswhitespaceinelementcontent

From: Date: Sat, 07 Jul 2007 22:36:07 +0000
Subject: note 76254 added to function.dom-domtext-iswhitespaceinelementcontent
Groups: php.notes 
Request: Send a blank email to php-notes+get-128288@lists.php.net to get a copy of this message
To add to `permidion at yahoo dot com''s comment: Quite true. According to DOM Level 3 Core, the isWhitespaceInElementContent()' method indicates, whether the node contains whitespace in element content' (or `element content whitespace' according to the newer spec), see [1]. Btw, it seems the isWhitespaceInElementContent()' method was replaced with the isElementContentWhitespace' attribute in the current W3C recommendation, see [2]. I have the feeling, though, it would be more precise with the word only' added, like: ... indicates, whether the node contains *only* element content whitespace.' This would better correspond with the fact the result is false, when there are any non-whitespace characters present (in addition to the whitespace ones), as already noted. [1] (please concatenate the following two lines) http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html #core-Text3-isWhitespaceInElementContent [2] (please concatenate the following two lines) http://www.w3.org/TR/DOM-Level-3-Core/core.html #Text3-isElementContentWhitespace ---- Server IP: 69.147.83.197 Probable Submitter: 147.229.212.48 ---- Manual Page -- http://www.php.net/manual/en/function.dom-domtext-iswhitespaceinelementcontent.php Edit -- https://master.php.net/note/edit/76254 Del: integrated -- https://master.php.net/note/delete/76254/integrated Del: useless -- https://master.php.net/note/delete/76254/useless Del: bad code -- https://master.php.net/note/delete/76254/bad+code Del: spam -- https://master.php.net/note/delete/76254/spam Del: non-english -- https://master.php.net/note/delete/76254/non-english Del: in docs -- https://master.php.net/note/delete/76254/in+docs Del: other reasons-- https://master.php.net/note/delete/76254 Reject -- https://master.php.net/note/reject/76254 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128288) next »