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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sathia dot musso at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Sep 29 01:01:26 2024 UTC