[2.0] New default frontend template [dev:Yellowled & Don]

Mark threads with "[2.0]" for discussions about features in the longer-term future, "[1.6]" is for short-term. This is not the place for general discussions or plugin or template requests. Only features that are approved to happen by the core team should be listed here for better structuring.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by Timbalu »

yellowled wrote:So what do we do about plugins then? At least some plugin would have to emit HTML5 code as well, otherwise the whole thing would be pointless. Do we maintain seperate legacy versions? Or do plugins have the ability to emit HTML4, XHTML and HTML5 code? Wouldn't that be bloat?
The best in migrating to HTML5 is that (x)htlm4 doesnt care about new semantics and HTML5 does not care rendering old styled html, as far as I know. So there is nothing to worry about. Plugins will drop in by time. If'd be nice to have core plugins like staticpages to be in HTML5 semantic, no question. But there is not need to bundle the release dates, if the template is well done earlier. ;-)

Btw, do all other old templates now fall back to 2k11 and bulletproof, or just one of them, or none?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by garvinhicking »

Hi!
Personally, I see only one reason for that – backwards compatibility. In an ideal scenario (yes, I know we don't have an ideal scenario here), plugin would not provide any CSS styles, those would be covered by templates. Yes, I know it's a pointless discussion.
Indeed. How would a template be able to provide support for all plugins? This is impossible, and you know it too. :-)
Remember back in the day when we didn't have the option to add a user.css at all? How did we even cope with that? :wink: Besides, I'm not stating "only one CSS file", I am stating "not (up to) three CSS files", which is a (small) difference. Let me mull a little over this.
Sure, but once the progress is made of user customization, tacking it back is a step backwards.
So what do we do about plugins then? At least some plugin would have to emit HTML5 code as well, otherwise the whole thing would be pointless. Do we maintain seperate legacy versions? Or do plugins have the ability to emit HTML4, XHTML and HTML5 code? Wouldn't that be bloat?
It depends. We should take on that plugin by plugin, I don't think we can globally state on how to proceed.

I think in most cases we can go a way to make it compliant for XHTML and HTML5.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

Timbalu wrote:The best in migrating to HTML5 is that (x)htlm4 doesnt care about new semantics and HTML5 does not care rendering old styled html, as far as I know. So there is nothing to worry about.
Not necessarily. There are some examples of XHTML/HTML4 code which actually are invalid in HTML5, as I mentioned before. These need to be addressed. There might be more of these in plugins I haven't tested yet.
Timbalu wrote:If'd be nice to have core plugins like staticpages to be in HTML5 semantic, no question.
Static pages are not an issue since the plugin is smartified.
Timbalu wrote:Btw, do all other old templates now fall back to 2k11 and bulletproof, or just one of them, or none?
Right now, 2k11 is not ready to be a fallback theme, i.e. I haven't paid any attention to that at all.

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

garvinhicking wrote:How would a template be able to provide support for all plugins? This is impossible, and you know it too. :-)
I wouldn't say it's impossible, but it sure as hell is a lot of work. But it could be done to some extent with solid base styles if (and that is the actual issue) all plugin would use proper HTML markup, i.e. without inline styles, always using the correct elements etc. However, it would mean that said template would have to have a lot of baggage in it's CSS which might not be used, which is the true concern here.
garvinhicking wrote:Sure, but once the progress is made of user customization, tacking it back is a step backwards.
Then it would be a step backwards as well to reduce the number of theme options. :wink:
garvinhicking wrote:I think in most cases we can go a way to make it compliant for XHTML and HTML5.
Yes, see my response to Timbalu. For a lot of plugins, the markup won't be that different – but there are some which might need extra markup for both since one is invalid in the opposite rule set. Maybe we should just smartify those.

YL
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by Timbalu »

yellowled wrote:Not necessarily. There are some examples of XHTML/HTML4 code which actually are invalid in HTML5, as I mentioned before. These need to be addressed. There [...] are some which might need extra markup for both since one is invalid in the opposite rule set. Maybe we should just smartify those.
Give us some examples of what exactly you mean, please.
Is former valid (x)HTML(4) invalid in HTML5 by W3C, except the deprecated elements?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

Timbalu wrote:Give us some examples of what exactly you mean, please.
http://validator.w3.org/check?verbose=1 ... irmen.html for example. There's something™ in the URL of the threaded/linear switch for comments, which isn't valid in HTML5.

I also assume that the new semantic elements would not be valid in (X)HTML(4), i.e. if a sidebar plugin would use the details element in an XHTML template.

YL
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by Timbalu »

It seems the HTML5 (using experimental feature HTML5 Conformance Checker!) validator is just more picky about not properly decoded & in the URL. Report it as being to strict.

About the second... Where could this happen...? This is one of the reasons why I asked about possible fallback scenarios...
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

Timbalu wrote:About the second... Where could this happen...? This is one of the reasons why I asked about possible fallback scenarios...
Erm, basically in any sidebar plugin? Just take the easiest example: categories. It would be perfectly valid to mark up the categories list in the sidebar in a nav element since it is a major navigation element in a blog. In a blog using an XHTML template, this would be invalid.

YL
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by Timbalu »

Well, erm, yes..., but why should you want to do this, since you know you have to stay backward compatible in fallback casements? And further..., why displace <div> by <nav> elements without any real need, while they are navigation like elements of 2cd or 3rd category?

I understand using HTML5 new semantic elements as a long breath replacement for to much divterie, clearing structural means, but in our case you can just use them there, where you can be sure no other old HTML, requiring valid html, is making use of them.

It is new semantic for structures, nothing strict... and without CSS they are just meaningless elements being somehow relevant in future. ( Please, dont discuss my last point if not totally wrong! ;-) ) In fact this is why we can use things like modernizr to catch up old browsers.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

Timbalu wrote:Well, erm, yes..., but why should you want to do this, since you know you have to stay backward compatible in fallback casements?
„Hey, why should I bother using h1, h2, h3, h4, h5, h6? I'm just gonna use <div class="headline"></div>!“

Because it is the proper element for the content it is used to mark up. Screen readers, search engines, less cluttered code. I am not going to discuss this any further.

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by Don Chambers »

hey guys, I have been really busy with "life" and have not really had much time to participate in this. Nice job on the demo Yellowled... very clean.

So, first question... when did the version number of the [svn/nightly/whatever this demo is using] change to 1.7 alpha1? Or is 1.7 specifically for this giant step forward?

Second question, and maybe Robert Lender would be the person to ask... isn't there supposed to be a clickable item (ie, a button) for the search field? I thought there was something having to do with accessibility or screen readers?? Unless that is covered by the class "visuallyhidden"??

Im also wondering if the quicksearch box should be identified if there is no button... I know what it is, you know what it is, but look at it from the point of view of someone who has never visited a s9y site...
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

Don Chambers wrote:I thought there was something having to do with accessibility or screen readers?? Unless that is covered by the class "visuallyhidden"??
Yes. There is a "send" button in the markup, but it's hidden visually (hence the class name) since it's not needed in visual browsers. It is of course available to screen readers.
Don Chambers wrote:Im also wondering if the quicksearch box should be identified if there is no button...
It has a proper label for screenreaders and a placeholder text which currently only works in modern browsers since it's implemented by the HTML5 placeholder attribute which needs a fallback for older browsers. That should suffice.

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by Don Chambers »

yellowled wrote:It has a proper label for screenreaders and a placeholder text which currently only works in modern browsers since it's implemented by the HTML5 placeholder attribute which needs a fallback for older browsers. That should suffice.
Well, I asked my 13 year old son what that box was likely for, and he said "I have no idea".

So, how about the version you are using... are we just skipping 1.6?
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

Don Chambers wrote:Well, I asked my 13 year old son what that box was likely for, and he said "I have no idea".
I guess he would have known if the box had "Search" inside, right? Apparently, you're using a browser incapable of HTML5 placeholders, so it needs a polyfill for that. I'll put that on my todo list.
Don Chambers wrote:So, how about the version you are using... are we just skipping 1.6?
No, I'm just using a recent svn snapshot for the demo blog. In fact, 2k11 will work fine with s9y>=1.6.

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] New default frontend template [dev:Yellowled & Don

Post by yellowled »

yellowled wrote:I'll put that on my todo list.
Done, including a no-js fallback.

YL
Locked