Re: LyXHTML doc doesn't pass validation

2022-04-01 Thread Thibaut Cuvelier
On Wed, 23 Mar 2022 at 22:54, José Abílio Matos  wrote:

> On Wednesday, 23 March 2022 20.12.23 WET Thibaut Cuvelier wrote:
>
> > XHTML 1 dates back from 2001... LyX generates XHTML 5, but the doctype
> is kept
>
> > from XHTML 1 for compatibility issues (some browsers completely change
> their
>
> > behaviour based on the doctype). The issue has been discussed on the
> mailing
>
> > list a while ago.
>
> At some point this decision can be revisited.
>
> It is question of deciding what are the browsers that we are interested to
> support. Because of the security associated issues the browsers are kept
> more up to date now than before so probably at some point this becomes a
> non issue.
>

I believe the browsers were quite recent, then:
http://lists.lyx.org/pipermail/lyx-devel/2020-September/003434.html
Now that the code matured quite a bit, maybe it could help to switch to XML
entities instead of HTML entities (i.e. to have ሴ instead of
&SomeHtmlEntityName;).
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyXHTML doc doesn't pass validation

2022-03-23 Thread José Abílio Matos
On Wednesday, 23 March 2022 20.12.23 WET Thibaut Cuvelier wrote:
> XHTML 1 dates back from 2001... LyX generates XHTML 5, but the doctype is 
kept
> from XHTML 1 for compatibility issues (some browsers completely change their
> behaviour based on the doctype). The issue has been discussed on the mailing
> list a while ago.

At some point this decision can be revisited.
It is question of deciding what are the browsers that we are interested to 
support. Because of the security associated issues the browsers are kept more 
up to date now than before so probably at some point this becomes a non issue.

-- 
José Abílio-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyXHTML doc doesn't pass validation

2022-03-23 Thread Thibaut Cuvelier
On Wed, 23 Mar 2022 at 20:02, Lorenzo Bertini 
wrote:

> Il 23/03/22 19:03, Thibaut Cuvelier ha scritto:
> > On Wed, 23 Mar 2022 at 18:43, Lorenzo Bertini
> > mailto:lorenzobertin...@gmail.com>> wrote:
> >
> > Running a very simple LyXHTML doc (a section with a few paragraphs)
> > against this validator https://validator.w3.org/check
> >  reports some
> > errors, I don't really know if we care or not:
> >
> > 1. value of attribute "dir" cannot be "auto"; must be one of "ltr",
> > "rtl"
> > 2. element "section" undefined
> >
> > Is this a problem? I just wanted to check if I could use the 
> > tag but its not part of the specification.
> >
> >
> > What version of HTML are you checking against? There are some glimpses
> > of HTML5 in the current output. For instance, dir="auto" and section are
> > perfectly legal in HTML5
> > (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
> > 
> and
> > https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section
> > )
>
> I checked XHTML 1.0, as it should be what LyX outputs. I was about to
> check up some of the xhtml_output code to maybe add `figure`
> environments, but since its XHTML there's very little allowed.
>

XHTML 1 dates back from 2001... LyX generates XHTML 5, but the doctype is
kept from XHTML 1 for compatibility issues (some browsers completely change
their behaviour based on the doctype). The issue has been discussed on the
mailing list a while ago.
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyXHTML doc doesn't pass validation

2022-03-23 Thread Lorenzo Bertini

Il 23/03/22 19:03, Thibaut Cuvelier ha scritto:
On Wed, 23 Mar 2022 at 18:43, Lorenzo Bertini 
mailto:lorenzobertin...@gmail.com>> wrote:


Running a very simple LyXHTML doc (a section with a few paragraphs)
against this validator https://validator.w3.org/check
 reports some
errors, I don't really know if we care or not:

1. value of attribute "dir" cannot be "auto"; must be one of "ltr",
"rtl"
2. element "section" undefined

Is this a problem? I just wanted to check if I could use the 
tag but its not part of the specification.


What version of HTML are you checking against? There are some glimpses 
of HTML5 in the current output. For instance, dir="auto" and section are 
perfectly legal in HTML5 
(https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir 
 and 
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section 
)


I checked XHTML 1.0, as it should be what LyX outputs. I was about to 
check up some of the xhtml_output code to maybe add `figure` 
environments, but since its XHTML there's very little allowed.

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyXHTML doc doesn't pass validation

2022-03-23 Thread Thibaut Cuvelier
On Wed, 23 Mar 2022 at 18:43, Lorenzo Bertini 
wrote:

> Running a very simple LyXHTML doc (a section with a few paragraphs)
> against this validator https://validator.w3.org/check reports some
> errors, I don't really know if we care or not:
>
> 1. value of attribute "dir" cannot be "auto"; must be one of "ltr", "rtl"
> 2. element "section" undefined
>
> Is this a problem? I just wanted to check if I could use the 
> tag but its not part of the specification.
>

What version of HTML are you checking against? There are some glimpses of
HTML5 in the current output. For instance, dir="auto" and section are
perfectly legal in HTML5 (
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir and
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section)
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


LyXHTML doc doesn't pass validation

2022-03-23 Thread Lorenzo Bertini
Running a very simple LyXHTML doc (a section with a few paragraphs) 
against this validator https://validator.w3.org/check reports some 
errors, I don't really know if we care or not:


1. value of attribute "dir" cannot be "auto"; must be one of "ltr", "rtl"
2. element "section" undefined

Is this a problem? I just wanted to check if I could use the  
tag but its not part of the specification.


Best regards,

Lorenzo (lynx)
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel