question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A random (?) space.

See original GitHub issue

Hi. I have this snippet <a href='/'>Home</a> which is compiled to <a href=/ >Home</a> My settings are:

collapseInlineTagWhitespace: true,
removeAttributeQuotes: true,
collapseWhitespace: true,
removeComments: true

On GTmetrix, I have 99% since their version does not contain the space between slash and closing tag. On validator.w3.org, <a href=/> is valid. Maybe I’m just missing an option.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
concatimecommented, Aug 16, 2017

I will try to report it to GTmetrix.

1reaction
alexlamslcommented, Aug 16, 2017

It will be interpreted as <a href="" />, which is valid format but invalid attribute value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Geometry of Random Spaces - Institute for Advanced Study
To get a feel for a random space, here is an example that you can make at home. All you need is a...
Read more >
Display a Random Space | React Fundamentals - Make School
To generate a random number with JavaScript you can use Math.random() . This method returns a random number between 0.0 and 1.0. It...
Read more >
Random space at the end of printed outputs - Stack Overflow
this one : import math r = math.pow(2,1/12) f0 = float(input('')) print('{:.2f}'.format(f0), end='') # < remove space for n in range(1,5): ...
Read more >
Random Space Media - Shop The Best of Home Ent on DVD ...
Australia's best independent home entertainment distributor, offering the best value in new releases, TV shows, movies, collections & more on Blu-ray, ...
Read more >
Select a random number from stream, with O(1) space
Given a stream of numbers, generate a random number from the stream. You are allowed to use only O(1) space and the input...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found