Remove Empty Attribute

This Forum is for General Issues about Analyzer

Remove Empty Attribute

Postby bianca_writer on Thu May 31, 2018 1:33 pm

Now that Analyzer is part of Flare 2018, I'm running all of the analysis tools that I didn't have before. The Markup Suggestions tool shows a ton of "Remove empty attribute" issues. It looks like almost every one of my topics has this code in the <head> section:

Code: Select all
<link href="" rel="stylesheet" type="text/css" />


The issue is that the href doesn't link to anything. Why is it blank? How do I fix this?


Screen Shot 2018-05-31 at 1.31.02 PM.png
You do not have the required permissions to view the files attached to this post.
bianca_writer
Propeller Head
 
Posts: 49
Joined: Tue Mar 15, 2016 9:57 am
Location: Irvine, CA

Re: Remove Empty Attribute

Postby RamonS on Sat Jun 02, 2018 4:28 am

I think the link to the stylesheet is malformed. Needs to look like this:
<link rel = "stylesheet"
type = "text/css"
href = "myStyle.css" />
Add the name of the stylesheet you want to reference and then it ought to be fine.
RamonS
Senior Propellus Maximus
 
Posts: 4265
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Remove Empty Attribute

Postby bianca_writer on Mon Jun 04, 2018 10:54 am

Thanks for explaining. The Target applies a Master Stylesheet to the whole target, so does each topic even need to link to a stylesheet? Could I just delete that line of code from the <head>?
bianca_writer
Propeller Head
 
Posts: 49
Joined: Tue Mar 15, 2016 9:57 am
Location: Irvine, CA

Re: Remove Empty Attribute

Postby Psider on Mon Jun 04, 2018 6:36 pm

I think you can. I had a look in my trial project, and the only topics with a link ref like yours are the imported Madcap sample topics - none of the topics I created myself have a link ref and they get the style set in my target.

Try with a single topic first, just to make sure.
Psider
Sr. Propeller Head
 
Posts: 419
Joined: Wed Jul 06, 2011 1:32 am


Return to Analyzer's General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest