SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

dom extract html html-document parse selector swift swiftsoup
7 Open Issues Need Help Last updated: Sep 14, 2025

Open Issues Need Help

View All on GitHub

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup
open Evaluator? about 2 months ago
help wanted

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup

AI Summary: The user is trying to get the final URL of a Google "I'm feeling lucky" redirect using SwiftSoup. Although SwiftSoup successfully fetches and parses the HTML content of the target page, the `doc.location()` and `doc.getBaseUri()` methods return empty strings, indicating that the document's base URI is not being set or retained.

Complexity: 2/5
bug help wanted

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup
help wanted

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup

AI Summary: The user reports an issue in SwiftSoup where chaining `.first()` after `select(":first-child")` returns the parent element (`<a>`) instead of the expected first child (`<img>` or `<span>`). When `.first()` is omitted, the `select` call correctly identifies and allows access to the `data-original-title` attribute of the intended child elements. This indicates a potential bug or unexpected behavior in how `.first()` interacts with the result of the `:first-child` selector.

Complexity: 3/5
bug help wanted

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup

AI Summary: The task is to fix a bug in the SwiftSoup library where non-breaking spaces (\u{A0}) are not properly escaped to &nbsp;. The issue lies in a conditional statement within the Entities.swift file that incorrectly handles the escape sequence for \u{A0}. The solution involves modifying the conditional logic to correctly identify and escape non-breaking spaces.

Complexity: 2/5
bug help wanted

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)

Swift
#dom#extract#html#html-document#parse#selector#swift#swiftsoup