You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/html/elements/picture.zig
+59-28Lines changed: 59 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,7 @@ fn validateSrcset(
265
265
// var future_h = false;
266
266
_=width_desc;
267
267
268
-
outer: while (position<input.len) {
268
+
while (position<input.len) {
269
269
// 4. Splitting loop: Collect a sequence of code points that are ASCII whitespace or U+002C COMMA characters from input given position. If any U+002C COMMA characters were collected, that is a parse error.
270
270
conststart=position;
271
271
while (position<input.len) : (position+=1) {
@@ -312,22 +312,41 @@ fn validateSrcset(
312
312
varstate: enum { descriptor, parens, after } =.descriptor;
313
313
314
314
// 4. Let c be the character at position. Do the following depending on the value of state. For the purpose of this step, "EOF" is a special character representing that position is past the end of input.
// If current descriptor is not empty, append current descriptor to descriptors and let current descriptor be the empty string. Set state to after descriptor.
// Advance position to the next character in input. If current descriptor is not empty, append current descriptor to descriptors. Jump to the step labeled descriptor parser.
330
-
if (position-descriptor_start==0) continue :outer;
0 commit comments