#38361 [Csd->Bgs]: getAttribute wont work with linebreaks

From: Date: Mon, 07 Aug 2006 07:16:10 +0000
Subject: #38361 [Csd->Bgs]: getAttribute wont work with linebreaks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100442@lists.php.net to get a copy of this message
ID: 38361 Updated by: mike@php.net Reported By: sathia dot musso at gmail dot com -Status: Closed +Status: Bogus Bug Type: DOM XML related Operating System: slackware PHP Version: 5.1.4 New Comment: . Previous Comments: ------------------------------------------------------------------------ [2006-08-07 00:04:15] sathia dot musso at gmail dot com closed because it was another error. sorry ------------------------------------------------------------------------ [2006-08-06 23:30:20] sathia dot musso at gmail dot com Description: ------------ i'm using this function to collect the img tags on a external webpage. i found that the collector wont work if the tag is out of standard ie: <img src="/images/83.jpeg" class="image" width="75" height="100" border="0" alt="bodyjoy83.jpeg" title="Nome del file : bodyjoy83.jpeg size : 37KB widthxheight : 450x600 inserted: 28 Apr 2006"> (there are actually several line break inside the title attribute) Reproduce code: --------------- $doc = new DOMDocument(); $doc->loadHTMLFile($safe_url); $tags = $doc->getElementsByTagName('img'); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38361&edit=1

« previous php.bugs (#100442) next »