User talk:ThisIsNotABetter/Template:LaptopGPU-OLD

Latest comment: 4 years ago by 85.202.228.67 in topic Lint errors

Lint errors

edit

This template is causing lint errors, which are visible from Draft:Template:LaptopGPU/doc:

{{Draft:Template:LaptopGPU|int=Intel HD 3000|dis-opt=NVIDIA GeForce<br>GT 1060 (4{{nbsp}}GB)|or=GT 1070 (4{{nbsp}}GB)|or2=GT 1080 (6{{nbsp}}GB)}}

expands to

 style="box-shadow: inset -10px 0px #d3ebf3;			background-image: linear-gradient(to right,  rgba(0,0,0,0) 50%,rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%);" class="text"|
		 
		 Intel HD 3000<br><span style="color:gray;">Option + NVIDIA GeForce<br>GT 1060 (4<span class="nowrap"> </span>GB)
			 
			 <br>or GT 1070 (4<span class="nowrap"> </span>GB)
			 <br>or GT 1080 (6<span class="nowrap"> </span>GB)</span>
 

and the markup

<span style="color:gray;">...</span>

is wrapping newline characters, which is flagged as a high-priority Misnested tag with different rendering in HTML5 and HTML4 lint error. It could be fixed by changing it to

<div style="color:gray;">...</div>

But perhaps the intent was to close the <span style="color:gray;">tag at the end of the line it appears on.

Please take a look at WP:Linter and install lintHint. —Anomalocaris (talk) 16:42, 23 September 2019 (UTC)Reply

Thanks for a help! Sorry about a slow fix. 85.202.228.67 (talk) 02:18, 22 December 2019 (UTC)Reply