Skip to content

Some elements (headings, code blocks and callouts) are missing on the MDN Web Docs #80

@RyotaUshio

Description

@RyotaUshio

Hi, thank you for the amazing projects! I noticed the Web Clipper misses all or some lines in some code blocks on the MDN Web Docs. Also, some callouts are also missing.

For example: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS

In the "Simple requests" section

  • The second code block that starts with GET /resources/public-data/ HTTP/1.1: All HTTP headers (line 2-) are missing.

Original:

GET /resources/public-data/ HTTP/1.1
Host: bar.other
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Connection: keep-alive
Origin: https://foo.example

Clipped:

```
GET /resources/public-data/ HTTP/1.1
```
  • The next HTTP code block that starts with HTTP/1.1 200 OK: All HTTP headers (line 2-8) are missing.

Original:

HTTP/1.1 200 OK
Date: Mon, 01 Dec 2008 00:23:53 GMT
Server: Apache/2
Access-Control-Allow-Origin: *
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/xml

[…XML Data…]

Clipped:

```
HTTP/1.1 200 OK

[…XML Data…]
```
  • The next code block is completely missing.

Original:

Access-Control-Allow-Origin: *

Clipped:

  • The next code block is completely missing.
Access-Control-Allow-Origin: https://foo.example

Clipped:

  • The callout (starting with "Note: When responding to ...") at the end of that section is also missing.

In the "Preflighted requests" section

  • The first JS code block is completely missing.
  • The callout below the first image in the section (starting with "Note: As described below, ...") is missing.
  • The next code block (HTTP; starting with OPTIONS /doc HTTP/1.1) is completely missing.
  • The next code block (HTTP; starting with Access-Control-Request-Method: POST) is completely missing.
  • The next code block (HTTP; starting with Access-Control-Allow-Origin: https://foo.example) is completely missing.
  • The next code block (HTTP; starting with POST /doc HTTP/1.1) is missing all HTTP headers (line 2-14, 19-27).

... and more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions