qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator
@ 2017-02-07 10:23 Thomas Huth
  2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 1/2] Add missing HTML tag to close the screenshots section Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thomas Huth @ 2017-02-07 10:23 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

The W3 HTML validator (https://validator.w3.org/) complains about
missing "alt" attributes and a missing "</section>" tag for the
new QEMU website. Here are two patches to fix the issues.

Thomas Huth (2):
  Add missing HTML tag to close the screenshots section
  Add "alt" attributes to the img tags

 _includes/screenshot.html | 2 +-
 index.html                | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [qemu-web PATCH 1/2] Add missing HTML tag to close the screenshots section
  2017-02-07 10:23 [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Thomas Huth
@ 2017-02-07 10:23 ` Thomas Huth
  2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 2/2] Add "alt" attributes to the img tags Thomas Huth
  2017-02-07 10:40 ` [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Paolo Bonzini
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2017-02-07 10:23 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

The final "</section>" tag is missing here.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/index.html b/index.html
index cf31912..ab33b8a 100644
--- a/index.html
+++ b/index.html
@@ -59,6 +59,7 @@ $('.colorbox').on("click.random-namespace", function() {
 })
 </script>
 
+			</section>
 		</div>
 		<hr>
 		<p>QEMU is a member of <a href="http://wiki.qemu-project.org/Conservancy">Software Freedom Conservancy</a>.</p>
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [qemu-web PATCH 2/2] Add "alt" attributes to the img tags
  2017-02-07 10:23 [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Thomas Huth
  2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 1/2] Add missing HTML tag to close the screenshots section Thomas Huth
@ 2017-02-07 10:23 ` Thomas Huth
  2017-02-07 10:40 ` [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Paolo Bonzini
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2017-02-07 10:23 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

The "alt" attribute is mandatory for the img tags according to
the HTML standard, so we need this to get valid HTML.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 _includes/screenshot.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_includes/screenshot.html b/_includes/screenshot.html
index 3f85791..70b0d11 100644
--- a/_includes/screenshot.html
+++ b/_includes/screenshot.html
@@ -5,5 +5,5 @@
    else %}{{screenshot.description}}{%endif %}{%
    if screenshot.author %} {{screenshot.author | markdownify | remove: '<p>' | remove: '</p>' | strip_newlines | escape}} {% endif %}{%
    if screenshot.source %} (&lt;a href=&quot;{{screenshot.source}}&quot;&gt;Source&lt;/a&gt;){%endif %}"><img
-   src="screenshots/{{screenshot.file}}"/></a>
+   src="screenshots/{{screenshot.file}}" alt="Screenshot: {{screenshot.description}}"/></a>
 {% endfor %}
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator
  2017-02-07 10:23 [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Thomas Huth
  2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 1/2] Add missing HTML tag to close the screenshots section Thomas Huth
  2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 2/2] Add "alt" attributes to the img tags Thomas Huth
@ 2017-02-07 10:40 ` Paolo Bonzini
  2017-02-07 10:50   ` Thomas Huth
  2 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2017-02-07 10:40 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel



On 07/02/2017 11:23, Thomas Huth wrote:
> The W3 HTML validator (https://validator.w3.org/) complains about
> missing "alt" attributes and a missing "</section>" tag for the
> new QEMU website. Here are two patches to fix the issues.
> 
> Thomas Huth (2):
>   Add missing HTML tag to close the screenshots section
>   Add "alt" attributes to the img tags
> 
>  _includes/screenshot.html | 2 +-
>  index.html                | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 

Applied, thanks! :)

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator
  2017-02-07 10:40 ` [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Paolo Bonzini
@ 2017-02-07 10:50   ` Thomas Huth
  2017-02-07 14:49     ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2017-02-07 10:50 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

On 07.02.2017 11:40, Paolo Bonzini wrote:
> 
> 
> On 07/02/2017 11:23, Thomas Huth wrote:
>> The W3 HTML validator (https://validator.w3.org/) complains about
>> missing "alt" attributes and a missing "</section>" tag for the
>> new QEMU website. Here are two patches to fix the issues.
>>
>> Thomas Huth (2):
>>   Add missing HTML tag to close the screenshots section
>>   Add "alt" attributes to the img tags
>>
>>  _includes/screenshot.html | 2 +-
>>  index.html                | 1 +
>>  2 files changed, 2 insertions(+), 1 deletion(-)
>>
> 
> Applied, thanks! :)

There is another error reported by the validator on the blog page:

https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.qemu-project.org%2Fblog%2F

But I don't have a clue how to fix that one ... the space in the URL
should be translated to %20 - any ideas how to do that with Jekyll?

 Thomas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator
  2017-02-07 10:50   ` Thomas Huth
@ 2017-02-07 14:49     ` Paolo Bonzini
  0 siblings, 0 replies; 6+ messages in thread
From: Paolo Bonzini @ 2017-02-07 14:49 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel



On 07/02/2017 11:50, Thomas Huth wrote:
> On 07.02.2017 11:40, Paolo Bonzini wrote:
>>
>>
>> On 07/02/2017 11:23, Thomas Huth wrote:
>>> The W3 HTML validator (https://validator.w3.org/) complains about
>>> missing "alt" attributes and a missing "</section>" tag for the
>>> new QEMU website. Here are two patches to fix the issues.
>>>
>>> Thomas Huth (2):
>>>   Add missing HTML tag to close the screenshots section
>>>   Add "alt" attributes to the img tags
>>>
>>>  _includes/screenshot.html | 2 +-
>>>  index.html                | 1 +
>>>  2 files changed, 2 insertions(+), 1 deletion(-)
>>>
>>
>> Applied, thanks! :)
> 
> There is another error reported by the validator on the blog page:
> 
> https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.qemu-project.org%2Fblog%2F
> 
> But I don't have a clue how to fix that one ... the space in the URL
> should be translated to %20 - any ideas how to do that with Jekyll?

No idea, the best would probably be to make the category page "web_site"
instead of "web site".

Paolo

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-07 14:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07 10:23 [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Thomas Huth
2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 1/2] Add missing HTML tag to close the screenshots section Thomas Huth
2017-02-07 10:23 ` [Qemu-devel] [qemu-web PATCH 2/2] Add "alt" attributes to the img tags Thomas Huth
2017-02-07 10:40 ` [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator Paolo Bonzini
2017-02-07 10:50   ` Thomas Huth
2017-02-07 14:49     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).