Skip to content
This repository has been archived by the owner on Apr 14, 2019. It is now read-only.

uninitialized value warning from bad <img> #19

Open
kryde opened this issue Dec 26, 2011 · 3 comments
Open

uninitialized value warning from bad <img> #19

kryde opened this issue Dec 26, 2011 · 3 comments
Assignees
Labels

Comments

@kryde
Copy link

kryde commented Dec 26, 2011

Checking a foo.html with html-lint 2.10

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Some Thing</title></head>

<body>
<img alt="blah">
</body>

gets a warning

Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/HTML/Lint/Error.pm line 112.

(in addition to reporting on width/height attributes as expected).

@scfc
Copy link
Contributor

scfc commented Nov 27, 2012

I see the same issue still in 2.20, but I don't understand why it isn't triggered in t/elem-img-sizes-missing.t.

@kryde
Copy link
Author

kryde commented Jul 18, 2013

It seems the problem is provoked when img is missing src="whatever" in addition to something else wrong such as missing alt or width/height.

@petdance petdance added the Bug label Dec 7, 2016
@petdance petdance self-assigned this Dec 24, 2016
@petdance
Copy link
Owner

I got this to happen, but have not looked to fix it yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants