php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38361 getAttribute wont work with linebreaks
Submitted: 2006-08-06 23:30 UTC Modified: 2006-08-07 07:16 UTC
From: sathia dot musso at gmail dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.1.4 OS: slackware
Private report: No CVE-ID: None
 [2006-08-06 23:30 UTC] 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');



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-07 00:04 UTC] sathia dot musso at gmail dot com
closed because it was another error.
sorry
 [2006-08-07 07:16 UTC] mike@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 13:01:29 2024 UTC