MantisBT - NetSurf
View Issue Details
0001874NetSurf[All Projects] Generalpublic2008-12-22 02:192019-07-19 09:26
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.9 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0001874: Better media descriptor parsing

Your browser looks really promising, at least when it comes to CSS rendering. Many real sites render perfectly or close to perfectly. However, the way you parse media descriptors is not forwards-compatible with media queries, so I made a patch to fix this. It's my first patch so it might need some adjustments :)

Detailed description:
NetSurf currently just looks for substrings in the media attribute of <link rel="stylesheet"> tags, and this causes media queries with "all" or "screen" in them to always match. This patch makes the parsing compliant with HTML4 section 6.13 so extensions to the standard can be ignored correctly.
Additional InformationImported from sourceforge bug on Tue Dec 10 17:34:13 2013

TagsNo tags attached.
Attached Files

Vincent Sanders   
2019-06-13 11:35   
css media queries are now fully implemented
Vincent Sanders   
2019-07-19 09:26   
we believe this issue has been resolved in NetSurf 3.9

Issue History
2013-12-10 17:41Vincent SandersNew Issue
2013-12-10 17:41Vincent SandersStatusnew => assigned
2013-12-10 17:41Vincent SandersAssigned To => Sourceforge Import placeholder
2013-12-24 12:07Vincent SandersAssigned ToSourceforge Import placeholder =>
2013-12-24 12:07Vincent SandersStatusassigned => acknowledged
2013-12-24 12:07Vincent SandersResolutionno change required => open
2013-12-24 12:07Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=970#r970
2013-12-24 12:07Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=972#r972
2019-06-13 11:35Vincent SandersStatusacknowledged => resolved
2019-06-13 11:35Vincent SandersResolutionopen => fixed
2019-06-13 11:35Vincent SandersFixed in Version => 3.9
2019-06-13 11:35Vincent SandersNote Added: 0001965
2019-07-19 09:26Vincent SandersStatusresolved => closed
2019-07-19 09:26Vincent SandersNote Added: 0001999